package cn.mybeky.douban {
    public class Movie {
        private var _title      :String;
        private var _author     :Array;
        private var _link       :String;
        private var _api_id     :String;
        private var _image      :String;
        private var _summary    :String;
        private var _pubdate    :String;
        private var _director   :Array;
        private var _language   :Array;
        private var _website    :String;
        private var _imdb       :String;
        private var _country    :Array;
        private var _chinesename:String;
        private var _othername  :Array;
        private var _casts      :Array;
        private var _tags       :Array;
        private var _rating     :Object;
        private var _updated    :String;
        private var _status     :String;
        private var _userRating :Object;
        private var _userTags   :Array;
        public function Movie() {
        	_author = [];
        	_director = [];
        	_language = [];
        	_casts = [];
        	_country = [];
        	_othername = [];
            _tags = [];
            _rating = {ave:0, max:5, min:0, numRaters:0};
            _userRating = {max:5, min:0, value:0};
            _userTags = [];
        }
        
        public function get title():String {
            return _title;
        }
        public function set title(value:String):void {
            _title = value;
        }
        
        public function get link():String {
            return _link;
        }
        public function set link(value:String):void {
            _link = value;
        }
        
        public function get api_id():String {
            return _api_id;
        }
        public function set api_id(value:String):void {
            _api_id = value;
        }
        
        public function get image():String {
            return _image;
        }
        public function set image(value:String):void {
            _image = value.match(/\w+.jpg/)[0].toString();
        }
        
        public function get summary():String {
            return _summary;
        }
        public function set summary(value:String):void {
            _summary = value;
        }
        
        public function get pubdate():String {
            return _pubdate;
        }
        public function set pubdate(value:String):void {
            _pubdate = value;
        }
        
        public function get director():Array {
            return _director;
        }
        public function set director(value:Array):void {
            _director = value;
        }
        
        public function get language():Array {
            return _language;
        }
        public function set language(value:Array):void {
            _language = value;
        }
        
        public function get website():String {
            return _website;
        }
        public function set website(value:String):void {
            _website = value;
        }
        
        public function get imdb():String {
            return _imdb;
        }
        public function set imdb(value:String):void {
            _imdb = value;
        }
        
        public function get country():Array {
            return _country;
        }
        public function set country(value:Array):void {
            _country = value;
        }
        
        public function get chinesename():String {
            return _chinesename;
        }
        public function set chinesename(value:String):void {
            _chinesename = value;
        }
        
        public function get othername():Array {
            return _othername;
        }
        public function set othername(value:Array):void {
            _othername = value;
        }
       
        public function get casts():Array {
            return _casts;
        }
        public function set casts(value:Array):void {
            _casts = value;
        }

        public function get tags():Array {
            return _tags;
        }
        public function set tags(value:Array):void {
            _tags = value;
        }  
        
        public function get rating():Object {
            return _rating;
        }
        public function set rating(value:Object):void {
            _rating = value;
        } 
        
        public function get userRating():Object {
            return _userRating;
        }
        public function set userRating(value:Object):void {
            _userRating = value;
        } 
        
        public function get updated():String {
            return _updated;
        }
        public function set updated(value:String):void {
            _updated = value;
        }
        
        public function get status():String {
            return _status;
        }
        public function set status(value:String):void {
            _status = value;
        }
        
        public function get userTags():Array {
            return _userTags;
        }
        public function set userTags(value:Array):void {
            _userTags = value;
        }   
    }
}